#pragma GCC optimize(2)
#include <bits/stdc++.h>

using namespace std;
#define int long long
const int inf = 0x3f3f3f3f3f3f3f3f;

void solve()
{
    int n;
    cin >> n;
    string s;
    cin >> s;
    string t = "Kato_Shoko";
    int j = 0;
    for (int i = 0; i < t.size(); i++)
    {
        for (; j < s.size(); j++)
        {
            if (s[j] == t[i]) break;
        }
        if (j == s.size())
        {
            cout << "NO" << endl;
            return;
        }
    }
    cout << "YES" << " " << n - 10;
}

signed main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int _ = 1;
    // cin >> _;
    while (_--)
    {
        solve();
    }
    return 0;
}